adTempus API
PreviousUpNext
IJobExecutionOptions::LogonSessionID Property

The logon session to use for the job.

C++
__property long LogonSessionID;
C#
long LogonSessionID;
Visual Basic
Property LogonSessionID() As long
Default Value

The LogonSessionID is initialized to the client's logon session ID.

 

This property is used only if the LogonSessionOptions contain one of the LogonPreferenceEnum.Specifiedn values. In that case, the job is run in the logon session specified by LogonSessionID.

The LogonSessionID is initialized to the client's logon session ID. Therefore the job can be run in the client's logon session by setting the LogonSessionOptions to Specified1, without changing the LogonSessionID. This is only valid if the client is on the same computer as the adTempus service. Otherwise the LogonSessionID may not be valid on the server, or may not be the logon session of the current client user.

adTempus API Reference version 3.0.0.0, revised 10/30/2008